﻿using MVVM.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVM.ViewModels
{
    public class DishMenuViewModel : NotificationObject
    {
        private Dish dish;
        public Dish Dish 
        {
            get 
            { 
                if (dish == null) 
                    dish = new Dish();
                return dish;
            } 
            set
            {
                dish = value;
            }
        }

        private bool isSelected;
        public bool IsSelected
        {
            get { return isSelected; }
            set
            {
                isSelected = value;
                RaisePropertyChanged("IsSelected");
            }
        }
    }
}
